package adv41.ano;

/**
 * @author oldliu
 * @since 1.0
 */
public class Calc {
    @MyTest(before = "before")
    public int add(int a,int b){
        return a+b;
    }
    @MyTest(before = "方法之前",after = "方法执行之后")
    public int mul(int a,int b){
        return a*b;
    }
    public int div(int a,int b){
        return a/b;
    }
    //@MyTest("sddd")
    //相当于给value属性赋值
    //@MyTest(value="sddd")
    public int takeaway(int a,int b){
        return a-b;
    }
}
